<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateProductTagPivotSkinDetectionItemTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('product_tag_pivot_skin_detection_item', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->integer('product_tag_id')->comment('关联product_tages表的id');
			$table->integer('skin_detection_item_id')->comment('关联skin_detection_items表的id');
			$table->integer('customer_id')->default(0)->comment('关联customers表的id，暂时没用');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('product_tag_pivot_skin_detection_item');
	}

}
